﻿@model IEnumerable<RestApp.UI.Models.User>
@{
    ViewBag.Title = "List";
}

@System.Web.Optimization.Styles.Render("~/bundles/dataTable")
<h2>Список сотрудников</h2>

@Html.ActionLink("Добавить", "Add", "ManageUsers")

<div>

    @{Html.RenderPartial("~/Views/Shared/UsersGrid.cshtml", new RestApp.UI.Core.UsersGridSettings()
      { 
          Users = Model, 
          GridType = RestApp.UI.Core.UsersGridType.Simple 
      } );}

</div>
@section scripts{
    @System.Web.Optimization.Scripts.Render("~/bundles/listUsers")
}
